package com.huluobo.a2201mvvm_imdemo.mine;

import android.text.TextUtils;

import androidx.lifecycle.MutableLiveData;

import com.huluobo.a2201mvvm_imdemo.mvvm.BaseRepo;
import com.hyphenate.EMCallBack;

/**
 * Created by LC on 2024/3/25.
 */
public class MineRepo extends BaseRepo {
    public void logout(MutableLiveData<String> success, MutableLiveData<String> failed) {
        emClient.logout(true, new EMCallBack() {
            @Override
            public void onSuccess() {
                success.postValue("退出成功");
            }

            @Override
            public void onError(int code, String error) {
                failed.postValue(error);
            }
        });
    }
}
